From: David Reitter Date: Thu, 7 May 2009 03:22:09 +0000 (+0000) Subject: mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update... X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~641 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7d0bf1f40d56a0b5ca36f0ef3170351bb5158366;p=emacs.git mouse movement/highlight: bracket drawing operations in ns_update_begin and ns_update_end. --- diff --git a/src/nsterm.m b/src/nsterm.m index 3ec7a34f277..aeeae4b20da 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -1752,9 +1752,11 @@ note_mouse_movement (struct frame *frame, float x, float y) y < last_mouse_glyph.origin.y || y >= (last_mouse_glyph.origin.y + last_mouse_glyph.size.height)) { + ns_update_begin(frame); frame->mouse_moved = 1; note_mouse_highlight (frame, x, y); remember_mouse_glyph (frame, x, y, &last_mouse_glyph); + ns_update_end(frame); return 1; } @@ -1856,11 +1858,13 @@ ns_frame_up_to_date (struct frame *f) /*&& dpyinfo->mouse_face_mouse_frame*/) { BLOCK_INPUT; + ns_update_begin(f); if (dpyinfo->mouse_face_mouse_frame) note_mouse_highlight (dpyinfo->mouse_face_mouse_frame, dpyinfo->mouse_face_mouse_x, dpyinfo->mouse_face_mouse_y); dpyinfo->mouse_face_deferred_gc = 0; + ns_update_end(f); UNBLOCK_INPUT; } }